package com.qianfeng.smartdevices.service;


import com.github.pagehelper.PageInfo;
import com.qianfeng.smartdevices.event.UpdateUserTimeEvent;
import com.qianfeng.smartdevices.pojo.User;


public interface UserService  {


    void addUser(User user) throws Exception;
    PageInfo<User> findAllUsers(int page, int limit, String usernamesearch, String status);

    int updateUser(User user);

    int deleteUsersByIds(Long[] ids);

    User findUserByUserName(String userName);

    void updateUserByTime(String username);

    void onEvent(UpdateUserTimeEvent event);
}
